package org.basic.sms.domain.bo;


import org.basic.common.core.validate.AddGroup;
import org.basic.common.core.validate.EditGroup;
import org.basic.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.basic.sms.domain.SysSmsChannel;

/**
 * 邮件渠道业务对象 sys_sms_channel
 *
 * @author Shao Hua
 * @date 2023-07-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysSmsChannel.class, reverseConvertGenerate = false)
public class SysSmsChannelBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 渠道自定义名称
     */
    @NotBlank(message = "渠道自定义名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 渠道编码
     */
    @NotBlank(message = "渠道编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 渠道类型
     */
    @NotNull(message = "渠道类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 渠道账号
     */
    @NotBlank(message = "渠道账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String secretId;

    /**
     * 渠道密钥
     */
    @NotBlank(message = "渠道密钥不能为空", groups = { AddGroup.class, EditGroup.class })
    private String secretKey;



    /**
     * 短信签名
     * */
    @NotBlank(message = "短信签名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String signature;





}
